import Vue from 'vue'
import App from './App'
import Axios from 'axios'
import router from './router'
import FastClick from 'fastclick'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import NutUI from '@nutui/nutui'
import MintUI from 'mint-ui'
import Antd from 'ant-design-vue'

import 'swiper/dist/css/swiper.css'
// 使用媒体查询监听设备宽度
import 'font-awesome/css/font-awesome.css'
import '@nutui/nutui/dist/nutui.css'
import 'ant-design-vue/dist/antd.css'
import 'mint-ui/lib/style.css'
import '../static/css/common.css'
import '../static/css/brand.css'
import 'babel-polyfill'
// 引入自下载icon图标
import './assets/iconfont/iconfont.css'
import '../static/js/rem.js'
import port from '../static/js/commonPort.js'

import store from '../src/store/store.js'

Vue.config.productionTip = false
Vue.config.debug = true
Vue.use(VueAwesomeSwiper)

NutUI.install(Vue)
Vue.use(MintUI)
Vue.use(Antd)

FastClick.attach(document.body)

Vue.config.productionTip = false
// 定义全局路径变量
Vue.prototype.baseUrl = port
// 设置全局axios请求
Vue.prototype.$http = Axios
console.log(process.env.API_ROOT)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {
    App
  },
  template: '<App/>'
})
